package com.lan.seriousphysics.screens.experimentMenus;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.InputListener;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
import com.lan.seriousphysics.SeriousPhysicsMain;
import com.lan.seriousphysics.screens.experimentos.CaidaLibre;
import com.lan.seriousphysics.screens.experimentos.experimental;

public class MRUAScreen extends AbstractInitExpScreen {

	public MRUAScreen(SeriousPhysicsMain game, String tit) {
		super(game, tit);
		// TODO Auto-generated constructor stub
	}
    public void show()
    {
    		super.show();
    		
    	       TextButton botonCaida = new TextButton( res.getString("CAIDA_BOT"), getSkin() );
    	       table.add( botonCaida ).size(300, 55).spaceBottom(20);
    	       table.row();
    	       botonCaida.addListener(new InputListener() {
   	            public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {
   	               //super.touchUp(event, x, y, pointer, button);
   	            	Gdx.app.log( SeriousPhysicsMain.LOG, "Caida");
   	            	game.setScreen(new CaidaLibre(game));
   	            	//game.setScreen(new PruebaScreen(game));
   	            	return true;
   	        }
   	        
   	});
    
    	       TextButton inclinado = new TextButton( res.getString("INC_BOT"), getSkin() );
    	       table.add( inclinado ).size(300, 55).spaceBottom(20);
    	       table.row();
    	       
    	       inclinado.addListener(new InputListener() {
      	            public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {
      	               //super.touchUp(event, x, y, pointer, button);
      	            	game.setScreen(new experimental(game));
      	            	//game.setScreen(new PruebaScreen(game));
      	            	return true;
      	        }
      	        
      	});
    	      
    	
    }
}
